package com.example.back.mapper;

import com.example.back.model.Post;
import com.example.back.model.Route;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author jialily
* @description 针对表【t_post】的数据库操作Mapper
* @createDate 2022-05-05 12:20:50
* @Entity com.example.back.model.Post
*/
@Mapper
public interface PostMapper {

    public List<Post> selectAll();

    public Post selectDetail(String itemId);

    public int updatePost(int id, String name,String information);

    public int deletePost(int id);

    public int insertPost(String name,String information);

}
